$(function(){
    $("#form").click(function(){
        var mchnt_cd=$("#mchnt_cd").val();
        var order_id=$("#order_id").val();
        var page_notify_url=$("#page_notify_url").val();
        var back_notify_url=$("#back_notify_url").val();
        var mchntKey=$("#mchntKey").val();
        $.post("http://www.ylifehr.com:1234/fuyou/smpQueryGateApp","mchnt_cd="+mchnt_cd+"&page_notify_url="+page_notify_url+"&back_notify_url="+back_notify_url+"&mchntKey="+mchntKey+"&order_id="+order_id,
            function(data){
                var resultDate = JSON.parse(data.data);
                console.info("order_id："+resultDate.order_id +"md5 :"+resultDate.md5);
                $("#mchnt_cd").val(resultDate.mchnt_cd);
                $("#order_id").val(resultDate.order_id);
                $("#page_notify_url").val(resultDate.page_notify_url);
                $("#back_notify_url").val(resultDate.back_notify_url);
                $("#md5").val(resultDate.md5);
                sub();
            },"json"
        )
    })

    function sub(){
        $("#form1").submit();
    }
})